import { action, computed, observable } from "mobx";

class Data {
  @observable userinfo = null;
  @observable categorylist = null;

  @action changeUserinfo = (payload) => {
    console.log(payload);
    this.userinfo = { ...this.userinfo, ...payload };
  };
  @action clearUserinfo = () => {
    this.userinfo = null;
  };
}
export default new Data();
